{%extends "base_full.html"%}
{%block extra_head%}
<script type="text/javascript" src="/media/js/defensemap.js"></script>
{%endblock%}
{%block page_title%}ZOMBI Tools - Defense map{%endblock%}

{%block main%}
Legend :<br />
safe | <span style="color:green;">covered</span> | <span style="color:yellow;">not covered</span> | <span style="color:#FF9900;">retake</span> | <span style="color:red;">retake+dict</span> | <span style="color:pink;">hyp. prot.</span>


<table class="planet">
	<tr>
		<th></th>
		{%for i in xcoords%}
        <th>{{i}}</th>
        {%endfor%}
    </tr>
    {%for yplanets in planets%}
    <tr><th></th>
    	{%for xplanets in yplanets%}
    		<td>
    		{%for planet in xplanets%}
    			<span class="{{planet.get_color}}" style="background:{{planet.get_bullet}} no-repeat;">{{planet.name}} [{{planet.ally.alliance_tag}}]</span><br/>
    		{%endfor%}
    		</td>
    	{%endfor%}
    </tr>
    {%endfor%}
    
</table>
{%endblock%}
{%block report%}
<div id="report">
</div>
{%endblock%}